﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection;
using Pixysoft.Weblications.Sango.Protocol.equipment;
using Pixysoft.Weblications.Sango.Protocol;
using Pixysoft.Weblications.Sango.Environment;

namespace Pixysoft.Weblications.Sango.Command.equipment
{
    partial class SangoEquipmentHandler
    {
        public eqm_list eqm_list()
        {
            string userCode = SangoManager.Authentication();

            eqm_list response = ReflectionManager.CreatePojo<eqm_list>();
            response.Succeed = false;

            response.equipments = EquipmentFacade.ToEquipments(EqmEquipmentHelper.searchAll());

            response.Succeed = true;
            return response;
        }


    }
    public interface eqm_list : ISangoResponse
    {
        List<eqm_equipment> equipments { get;set;}
        
    }
}
